package com.cz.nongyetongv5.dialog;
import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

import com.cz.nongyetongv5.R;
import com.mdx.mobile.dialogs.Loading;

public class LoadingDialog extends Dialog implements Loading{
    private TextView tv_loading;

    public LoadingDialog(Context context) {
        super(context, R.style.RDialog);
        this.setContentView(R.layout.loadingdialog);
        tv_loading = (TextView)findViewById(R.id.tv_loading);
        tv_loading.setText("加载中...");
    }

    public void setText(String text){
        tv_loading.setText(text);
    }

    public LoadingDialog setMessage(CharSequence text){
        tv_loading.setText(text);
        return this;
    }
}

